package com.ruoyi.WELD.service.impl;

import com.ruoyi.WELD.domain.DataRB;
import com.ruoyi.WELD.domain.Weld;
import com.ruoyi.WELD.mapper.DataRBMapper;
import com.ruoyi.WELD.service.IDataRBService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.validation.Validator;
import java.util.List;

@Service
public class DataRBServiceImpl implements IDataRBService {
    private static final Logger log = LoggerFactory.getLogger(DataRBServiceImpl.class);

    @Autowired
    private DataRBMapper dataRBMapper;

    @Autowired
    protected Validator validator;

    @Override
    public List<DataRB> selectDataRBList(DataRB dataRB) {
        return dataRBMapper.selectDataRBList(dataRB);
    }

    @Override
    public DataRB selectDataRBById(Long id) {
        return dataRBMapper.selectDataRBById(id);
    }

    @Override
    public List<DataRB> selectDataRBByIds(Long[] ids) {
        return dataRBMapper.selectDataRBByIds(ids);
    }

    @Override
    public int insertDataRB(Weld weld) {
        return dataRBMapper.insertDataRB(weld);
    }

    @Override
    public int deleteDataRBById(Long id) {
        return dataRBMapper.deleteDataRBById(id);
    }

    @Override
    public int deleteDataRBByIds(Long[] ids) {
        return dataRBMapper.deleteDataRBByIds(ids);
    }

    @Override
    public int ClearDataRB() {return dataRBMapper.ClearDataRB();}


}
